package org.csu.mypetstore.service;

import com.alibaba.fastjson.JSONObject;
import org.csu.mypetstore.commonResponse.CommonResponse;
import org.csu.mypetstore.domin.Inventory;
import org.csu.mypetstore.domin.Item;

import java.util.List;
import java.util.Map;

public interface ItemService {
    CommonResponse<Inventory> updateInventoryQuantity(String itemid, int num);
    CommonResponse<Inventory> getInventoryQuantity(String itemId);
    CommonResponse<JSONObject> getItemListByProduct(String productId);
    CommonResponse<Item>getItem(String itemId);

    CommonResponse<Item> updateItem(Item item);

    CommonResponse<List<Item>> fourHotItems();
}
